import type { SogouElements } from '../../../../../../../../types/constants/personalization/sogou'
import type { ThemeType } from '../../../../../../../../types/interfaces'
import { ThemeVarService } from '../../../../../../../../lib/abstract/style/theme_var/service'
import { PAGE_ELEMENTS, SUPPORTED_PLATFORMS } from '../../../../../../../../types/constants'
import { SogouCommonPage } from './common'

export class SogouMedicalPage {
  elements: SogouElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.SO_GOU]
  private static instance: SogouMedicalPage
  private commonPage: SogouCommonPage = SogouCommonPage.getInstance()
  protected readonly themeVarService: ThemeVarService = ThemeVarService.getInstance()

  /**
   * 获取单例实例
   */
  public static getInstance(): SogouMedicalPage {
    if (!SogouMedicalPage.instance) {
      SogouMedicalPage.instance = new SogouMedicalPage()
    }
    return SogouMedicalPage.instance
  }

  init(): void {
  }

  /**
   * 无搜索结果样式
   */
  noSearchResult(): string {
    return ``
  }

  getMainStyles(theme: ThemeType): string {
    return `
${this.commonPage.baseWebResultStyles(theme)}
`
  }
}
